$fontSize_14: 0.8vw;
$fontSize_16: 0.9vw;
$fontSize_18: 1vw;
$fontSize_22: 1.1vw;
$fontSize_24: 1.26vw;
$fontSize_28: 1.3vw;
$fontSize_32: 1.4vw;
$fontSize_36: 1.8vw;
$fontSize_40: 2.1vw;
$fontSize_48: 2.5vw;
$fontSize_50: 2.6vw;
$fontSize_54: 2.7vw;
$fontSize_64: 3.2vw;
$fontSize_70: 3.5vw;
$fontSize_90: 4.5vw;
$fontSize_100: 5vw;
$fontSize_200: 10vw;
$f: 19.2;

.home {
  position: relative;
  width: 100%;
  padding-top: 8vw;

  .section1 {
    margin: 4vw 18vw;
    transform: scale(.95);
    .back{
      display: flex;
      width: fit-content;
      color: #6456A3;
      font-size: $fontSize_16;
      font-family: 'Montserrat-Regular.otf';
    }
    .t{
      color: #6456A3;
      font-size: $fontSize_50;
      font-family: 'Newsreader';
      font-style: italic;
      margin: 3vw 0 1vw 0;
    }
    .t2{
      color: #707070;
      font-size: $fontSize_24;
      font-family: 'Montserrat-Regular.otf';
    }
    .html{
      color: #707070;
      font-size: $fontSize_24;
      font-family: 'Montserrat-Light';
      font-style: italic;
      line-height: 1.5;
      margin: 3vw 0 2vw 0;
      img{
        max-width: 100%;
        object-fit: cover;
      }
    }
    .pager{
      display: flex;
      justify-content: space-between;
      .share{
        display: flex;
        align-items: center;
        a{
          display: block;
          margin: 0 0.5vw;
          img{
            width: 25/$f+vw;
          }
        }
      }
      .prev,.next{
        width: fit-content;
        border-radius: 32/$f+vw;
        background: #6456A3;
        padding: 0.5vw 1vw;
        color:white;
        display: flex;
        justify-content: center;
        align-items: center;
        text-transform: capitalize;
        font-size: $fontSize_16;
        cursor: pointer;
        transition: all 600ms;
        p{
          font-family: 'Lexend';
        }
        svg{
          display: block;
          width: 25/$f+vw;
        }
        &:hover{
          background-color: #61C0BD;
        }
      }
      .next{
        padding-left: 1.6vw;
        padding-right: 0.5vw;
      }
    }
  }

  .section2 {
    margin: 8vw 15vw 4vw 15vw;
    transform: scale(.95);
    .swiper-container {
      width: 100%;

      a {
        display: block;

        .pic {
          img {
            width: 100%;
            display: block;
            object-fit: cover;
            border-radius: 30/$f+vw;
            transition: all 600ms;
          }
        }

        .text {
          margin: 2vw 1vw;

          .p1 {
            color: #6456A3;
            font-size: $fontSize_24;
            font-family: 'Montserrat-Light';
            text-transform: uppercase;
            transition: all 600ms;
            line-height: 1.4;
          }

          .time {
            color: #999BB0;
            font-size: $fontSize_22;
            font-style: italic;
            font-family: 'Montserrat-Light';
            width: fit-content;
            padding: 0.6vw 0 1.5vw 0;
            position: relative;

            &::after {
              content: '';
              display: block;
              position: absolute;
              bottom: 0;
              width: 70%;
              background-color: #999BB0;
              left: 0;
              height: 1px;
            }
          }

          .des {
            color: #999BB0;
            font-size: $fontSize_22;
            font-style: italic;
            font-family: 'Montserrat-Light';
            margin-top: 1vw;
            line-height: 1.4;
            word-break: break-all;
            text-overflow: ellipsis;
            display: -webkit-box;
            -webkit-box-orient: vertical;
            -webkit-line-clamp: 4;
            overflow: hidden;
          }
        }

        &:hover {
          .pic {
            img {
              transform: scale(1.05);
            }
          }

          .text {
            .p1 {
              color: #61C0BD;
            }
          }
        }
      }
    }
  }

  .section4{
    background: #61C0BD;
    text-align: center;
    padding: 5vw 0 3vw 0;
    .t{
      color: #FFF;
      font-size: $fontSize_70;
      font-family: 'Montserrat-Regular.otf';
      text-transform: capitalize;
      line-height: 1.2;
    }
    a{
      display: flex;
      justify-content: center;
      width: fit-content;
      margin: 3vw auto 0 auto;
      align-items: center;
      p{
        font-size: $fontSize_24;
        font-style: italic;
        font-family: 'Newsreader';
        color:white;
        text-transform: capitalize;
      }
      svg{
        display: block;
        margin-top: 0.3vw;
        width: 30/$f+vw;
      }
    }
  }



  @media screen and (max-width: 1024px) {
    padding-top: 60px;
    .section1{
      margin: 20px 5%;
      transform: scale(1);
      .back{
        font-size: 14px;
      }
      .t{
        font-size: 24px;
        line-height: 1.2;
        margin: 30px 0 10px 0;
      }
      .t2{
        font-size: 18px;
      }
      .html{
        font-size: 18px;
        margin: 30px 0 20px 0;
      }
      .pager{
        .share{
          a{
            margin: 0 8px;
            img{
              width: 20px;
            }
          }
        }
        .prev,.next{
          font-size: 14px;
          padding: 5px 15px;
          svg{
            width: auto;
          }
        }
      }
    }
    .section2{
      margin: 30px 5%;
      transform: scale(1);
      .swiper-container{
        a{
          .text{
            margin: 20px 10px;
            .p1{
              font-size: 18px;
            }
            .time{
              font-size: 16px;
              padding: 5px 0 10px 0;
            }
            .des{
              font-size: 16px;
              line-height: 1.5;
              margin-top: 10px;
            }
          }
        }
      }
    }
    .section4{
      padding: 40px 0 30px 0;
      .t{
        font-size: 32px;
      }
      a{
        margin: 20px auto 0 auto;
        p{
          font-size: 18px;
        }
        svg{
          width: 25px;
          transform: translateY(2px);
        }
      }
    }
  }
}